package com.run.motion.service.impl;

import java.util.List;

import com.run.motion.entity.GymImages;
import com.run.motion.mapper.GymImagesMapper;
import com.run.motion.service.IGymImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 健身房图片Service业务层处理
 * 
 * @author lyq
 * @date 2022-03-26
 */
@Service
public class GymImagesServiceImpl implements IGymImagesService
{
    @Autowired
    private GymImagesMapper gymImagesMapper;

    /**
     * 查询健身房图片
     * 
     * @param id 健身房图片主键
     * @return 健身房图片
     */
    @Override
    public GymImages selectGymImagesById(Long id)
    {
        return gymImagesMapper.selectGymImagesById(id);
    }

    /**
     * 查询健身房图片列表
     * 
     * @param gymImages 健身房图片
     * @return 健身房图片
     */
    @Override
    public List<GymImages> selectGymImagesList(GymImages gymImages)
    {
        return gymImagesMapper.selectGymImagesList(gymImages);
    }

    /**
     * 新增健身房图片
     * 
     * @param gymImages 健身房图片
     * @return 结果
     */
    @Override
    public int insertGymImages(GymImages gymImages)
    {
        return gymImagesMapper.insertGymImages(gymImages);
    }

    /**
     * 修改健身房图片
     * 
     * @param gymImages 健身房图片
     * @return 结果
     */
    @Override
    public int updateGymImages(GymImages gymImages)
    {
        return gymImagesMapper.updateGymImages(gymImages);
    }

    /**
     * 批量删除健身房图片
     * 
     * @param ids 需要删除的健身房图片主键
     * @return 结果
     */
    @Override
    public int deleteGymImagesByIds(Long[] ids)
    {
        return gymImagesMapper.deleteGymImagesByIds(ids);
    }

    /**
     * 删除健身房图片信息
     * 
     * @param id 健身房图片主键
     * @return 结果
     */
    @Override
    public int deleteGymImagesById(Long id)
    {
        return gymImagesMapper.deleteGymImagesById(id);
    }
}
